package com.flute.datareceiver.data.context;

import java.io.File;

/**
 * @author Jazz
 * 
 * 用于服务的上下文环境
 * 
 */
public class ServiceContext {
	private static String rootDir = "";

	public static String getRootDir() {
		if ("".equals(rootDir)) {
			rootDir = System.getProperty("user.dir");
			rootDir = (new StringBuilder(rootDir)).append(File.separator)
					.toString();
		}
		return rootDir;
	}

}
